// hideInMenu:是否显示在左侧菜单（false） true就是不显示在左侧
import Layout from "@/layout/index.vue";

export default [
  
  {
    path: "/login",
    name: 'login',
    component: () => import('@/views/Login/login.vue'),
    meta: {
      hideInMenu: true
    }
  },
  {
    path: "/home",
    component: Layout,
    name: "container",
    redirect: "home",
    meta: {
      name: "首页",
      hideInMenu: false,
      isParent: true, //只有一项，只会展示一项
    },
    children: [{
      path: "/home",
      name: "home",
      component: () => import("@/views/Home/index.vue"),
      meta: {
        name: "首页",
        icon:'House'
      },
    },],
  },
  {
    path: "/",
    redirect: "/home", // 添加这行来实现从 / 重定向到 /home
  },
  {
    path: '/:catchAll(.*)',
    name: "404",
    component: () => import("@/views/ZMessage/404.vue"),
    meta: {
      name: "404",
      hideInMenu: true
    },
  },
];